<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/main.css">

<table>
	<tr>
		<td rowspan=3><a href="<c:url value='/index.jsp' />"><img
			src="${pageContext.request.contextPath}/images/gymrat_small.png" /></a>
		</td>
		<td>
		<h1>Gym Rat</h1>
		</td>
	</tr>
	<c:choose>
		<c:when test="${user == null }">
			<tr>

				<td>Welcome, please login or register to enjoy the full
				functionality of this site.</td>

			</tr>
			<tr>

				<td><a href="<c:url value='/home.jsp' />">Login</a> | <a
					href="<c:url value='account/create_account.jsp' />">Register</a> |
				<a href="<c:url value='/exercise/list' />">Exercises</a>
			</tr>
		</c:when>
		<c:otherwise>
			<tr>

				<td>Welcome back, ${user.email }</td>

			</tr>
			<tr>

				<td><a href="<c:url value='/home.jsp' />">Home</a> | <a
					href="<c:url value='/account/logout' />">Logout</a> | <a
					href="<c:url value='/program/list' />">Programs</a> | <a
					href="<c:url value='/routine/list' />">Routines</a> | <a
					href="<c:url value='/exercise/list' />">Exercises</a> | <a
					href="<c:url value='/log/view' />">Logs</a></td>
			</tr>
		</c:otherwise>
	</c:choose>
</table>
<hr>


